package club.cearnach.api.service;

import club.cearnach.entity.MovieLanguage;
import club.cearnach.api.exception.MovieLanguageException;
import club.cearnach.api.form.PageBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author 阮胜
 * @date 2018/5/12 14:29
 */
public interface IMovieLanguageService {
    Page<MovieLanguage> findAll(Pageable pageable);

    List<MovieLanguage> findAll();

    MovieLanguage save(MovieLanguage movieType) throws MovieLanguageException;


    MovieLanguage findById(Integer id) throws MovieLanguageException;

    void delete(Integer id) throws MovieLanguageException;

    Page<MovieLanguage> findAllOrderByCreateDate(PageBean pageBean);

    void deleteIn(Integer[] idArr);

    long count();

    boolean isExist(Integer id, String typeName);

    boolean isExist(MovieLanguage movieType);
}
